<!DOCTYPE html>
<!-- saved from url=(0037)http://127.0.0.1/wx/ybss/zhuce/zc.jsp -->
<html class="pixel-ratio-1"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <title>交易结果</title>

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no, email=no">
    <link rel="stylesheet" href="../../resource/weuimin.css" />
    <link rel="stylesheet" href="../../resource/example.css" />
    <script src="../../script/api.js"></script>
    <script src="../../resource/jquery1.js"></script>
    <script type="text/javascript" src="../../resource/wapcommon.js"></script>
    <script type="text/javascript" src="../../resource/common.js"></script>
    <link type="text/css" rel="stylesheet" href="../../resource/fapiao.css">
    <link rel="stylesheet" href="../../resource/jinsuistyle.css" />
    <script type="text/javascript" src="../../script/constants.js"></script>


</head>
<body>
<header id="statusBar">
 <div id="jsheader" style="z-index: 99;">
      <nav id="jsnav">
          <a id="jsleft" tapmode="" onclick="api.closeToWin({name: 'root'});">
              <span>返回</span>
          </a>
          <div id="jsmiddle">
              <strong id="jstitle">支付详情</strong>
          </div>
          <a id="jsright">
              <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
          </a>
      </nav>
  </div>
  </header>
 <div class="paddingtop70"></div>
  <div class="page__bd">
        <br>
        <div class="weui-form-preview">
            <div class="weui-form-preview__hd">
                <label class="weui-form-preview__label">收款金额</label>
                <div class="weui-form-preview__value" id="je"></div>
            </div>
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">类型</label>
                    <span class="weui-form-preview__value">收款</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">入库时间</label>
                    <div class="weui-form-preview__value" id="rksj"></div>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">流水号</label>
                    <div class="weui-form-preview__value" id="lsh"></div>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">交易结果</label>
                    <div class="weui-form-preview__value" id="msg"></div>
                </div>
            </div>
            <div class="weui-form-preview__ft">
                  <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" onclick="fh()">确认</a>
              </div>
        </div>
    </div>
</body>
<script>
apiready = function(){
    $api.fixStatusBar( $api.dom('header') );
    if(api.systemType == "ios"){
	   document.getElementById("statusBar").style.background = "#298cb4";
	}
	var msg = api.pageParam.msg;
	var type = api.pageParam.type;
    var rksj = api.pageParam.rksj;
    var je = api.pageParam.je;
    var lsh = api.pageParam.lsh;
    var sj = getLocalTime(rksj);
    $("#je").html("¥"+je);
    $("#rksj").html(sj);
    $("#lsh").html(lsh);
    $("#msg").html(msg);
}

function getLocalTime(jsondate) {
jsondate=""+jsondate+"";//因为jsonDate是number型的indexOf会报错
if (jsondate.indexOf("+") > 0) {
             jsondate = jsondate.substring(0, jsondate.indexOf("+"));
         }
         else if (jsondate.indexOf("-") > 0) {
             jsondate = jsondate.substring(0, jsondate.indexOf("-"));
         }
         var date = new Date(parseInt(jsondate, 10));
         var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
         var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
         var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
         var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
         var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
         return date.getFullYear() + "-" + month + "-" + currentDate + " " + hours + ":" + minutes + ":" + seconds;
}
function fh(){
	api.closeWin();
}
</script>
</html>
